Skip to content

Disable eager loading when no groups are specified to avoid recursive joins#2002

Merged
dunglas merged 1 commit into
api-platform:2.2from
soyuka:fix-eager-loading-without-groups
Jun 5, 2018
Merged

Disable eager loading when no groups are specified to avoid recursive joins#2002
dunglas merged 1 commit into
api-platform:2.2from
soyuka:fix-eager-loading-without-groups

Conversation

@soyuka

@soyuka soyuka commented Jun 5, 2018

Copy link
Copy Markdown
Member
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@soyuka soyuka force-pushed the fix-eager-loading-without-groups branch from 927c2ec to bae8b67 Compare June 5, 2018 10:33
$context += $this->getNormalizationContext($context['resource_class'] ?? $resourceClass, $contextType, $options);
}

if (empty($context[AbstractNormalizer::GROUPS])) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&& !isset(AbstractNormalizer::ATTRIBUTES)

@soyuka soyuka force-pushed the fix-eager-loading-without-groups branch from bae8b67 to 000f6df Compare June 5, 2018 12:04
@teohhanhui teohhanhui changed the title Disable eager loading when no groups are specified to avoid recursive… Disable eager loading when no groups are specified to avoid recursive joins Jun 5, 2018
@dunglas dunglas merged commit e6cd60c into api-platform:2.2 Jun 5, 2018
@soyuka soyuka deleted the fix-eager-loading-without-groups branch June 5, 2018 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants